const fs = require("fs");
const path = require("path");
const contentPath = path.resolve(__dirname, "./yarn.lock.txt");

// 流式读取
const rs = fs.createReadStream(contentPath);

rs.on("data", (chunk) => {
  console.log(chunk.toString());
});

rs.on("end", function () {
  console.log("读取完毕");
});
